public var remLife: float = 35.0;
function OnTriggerEnter (collision: Collider){
	if(collision.transform.gameObject.tag=="Enemy"){
		collision.transform.GetComponent("GameBotBehaviour").RemLife(35);
		//print("bhit");
		Destroy(rigidbody);
		Destroy(gameObject);
	}else{
		if(collision.transform.gameObject.tag!="Bullet"){
	//Destroy(collision.transform.gameObject);
			Destroy(gameObject);
		}
	}
}
function Start() {
	rigidbody.AddForce(transform.TransformDirection(Vector3.forward)*12);
}
public var target:Transform;
function Update () {
	if(!target){
		return;
	}
	var dist:float = Vector3.Distance(transform.position,target.position);
	if(dist>40){
		Destroy(gameObject);
	}
	
}